#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<list>
using namespace std;

int main()
{
	list<int> lt;
	lt.push_back(1);
	lt.push_back(3);
	lt.push_back(5);
	lt.push_back(6);
	lt.push_back(3);
	lt.sort();
	lt.unique();
	for (int xu : lt)
	{
		cout << xu << " ";
	}
	return 0;
}